package src.client;

import java.util.*;

public class SelectQuery {
	private final String selectQuery;
	public SelectQuery(String selectQuery){
		this.selectQuery=selectQuery.toLowerCase();
	}
	public List<String> queryParse(){
		String regex="select ";
        List<String> items=Utilities.SplitByRegex(selectQuery,regex);
        if(items.size()==1){
        	items=Utilities.SplitByRegex(items.get(0),"(,)");
        	return items;
        }else{
        	return null;
        }
	}
	
}
